package com.congee02.dbservlet.framework.ioc.bean;

/**
 * Bean 的简单定义
 */
public class BeanDefinition {

    private Class<?> type;
    private ScopeEnum scope;

    public BeanDefinition(Class<?> type, ScopeEnum scope) {
        this.type = type;
        this.scope = scope;
    }

    public Class<?> getType() {
        return type;
    }

    public void setType(Class<?> type) {
        this.type = type;
    }

    public ScopeEnum getScope() {
        return scope;
    }

    public void setScope(ScopeEnum scope) {
        this.scope = scope;
    }

    @Override
    public String toString() {
        return "BeanDefinition{" +
                "type=" + type +
                ", scope=" + scope +
                '}';
    }
}
